package com.ehotting.edsta.circuitDesign.service.impl;

import com.ehotting.edsta.circuitDesign.domain.EsCircuit;
import com.ehotting.edsta.circuitDesign.domain.EsCircuitPcb;
import com.ehotting.edsta.circuitDesign.mapper.EsCircuitPcbMapper;
import com.ehotting.edsta.circuitDesign.service.EsCircuitPcbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EsCircuitPcbServiceImpl implements EsCircuitPcbService {

    @Autowired
    private EsCircuitPcbMapper esCircuitPcbMapper;

    public void save(EsCircuitPcb esCircuitPcb){

    }

    @Override
    public List<EsCircuitPcb> selectEsCircuitPcbs(EsCircuitPcb esCircuitPcb){

        List<EsCircuitPcb> selectList = esCircuitPcbMapper.selectEsCircuitPcbs(esCircuitPcb);
        return selectList;
    }

    @Override
    public EsCircuitPcb selectEsCircuitPcbById(Long id) {
        return esCircuitPcbMapper.selectEsCircuitPcbById(id);
    }

    @Override
    public List<EsCircuitPcb> selectEsCircuitPcbByName2(String conName,String powName) {
        return esCircuitPcbMapper.selectEsCircuitPcbByName2(conName,powName);
    }

    @Override
    public int insertEsCircuitPcb(EsCircuitPcb esCircuitPcb) {
        return esCircuitPcbMapper.insertEsCircuitPcb(esCircuitPcb);
    }

    @Override
    public int updateEsCircuitPcb(EsCircuitPcb esCircuitPcb) {

        return esCircuitPcbMapper.updateEsCircuitPcb(esCircuitPcb);
    }

    @Override
    public int deleteEsCircuitPcbByIds(Long[] ids) {

        return esCircuitPcbMapper.deleteEsCircuitPcbByIds(ids);
    }

    @Override
    public int deleteEsCircuitPcbById(Long id) {

        return esCircuitPcbMapper.deleteEsCircuitPcbById(id);
    }

}
